﻿using System;

namespace EduFormManager.Models
{
    public class FormData : Entity
    {
        [Flags]
        public enum StatusEnum : short
        {
            OK = 0,
            Expired = 1,
            WithErrors = 2
        };

        public virtual FileData File { get; set; }
        public virtual DocumentFormat DocumentFormat { get; set; }
        public virtual Allform Form { get; set; }
        public virtual DateTime Date { get; set; }
        public virtual StatusEnum Status { get; set; }
        //public override string ToString()
        //{
        //    return string.Format("{0}, {1}, {2} bytes", this.Date, this.Form, this.File.Contents.LongLength);
        //}
    }
}
